char a[10];
char foo(int i)
{
    char n;
    n = a[i];
}